package game;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
public class Game extends JFrame implements WindowComponent{
	
	public Game() {
		initialize();
	}


	private void initialize() {
		
		FRAME.setTitle("Who Wants to be a Java Programmer");
		FRAME.setSize(806, 620);
		FRAME.setLocationRelativeTo(null);
        FRAME.setResizable(false);
        FRAME.setDefaultCloseOperation(EXIT_ON_CLOSE);
        
        getContentPane().setLayout(new CardLayout(0, 0));
        getContentPane().add(MENU_PANEL, "Main Menu");
        getContentPane().add(PLAY_PANEL, "Play");
        getContentPane().add(STATISTICS_PANEL, "Statistics");
        getContentPane().add(OPTION_PANEL, "Options");
        getContentPane().add(LEADERBOARD_PANEL, "Leaderboard");
        getContentPane().add(CREDITS_PANEL, "Credits");
        
        FRAME.getContentPane().add(getContentPane(), BorderLayout.CENTER);
	}


	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					new Game().FRAME.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

}
